<?php
ob_start();
//
include("include/config.php");
include("include/functions.php");?><div class="mk-one-column home-page">
<script src="js/jquery-1.6.js" type="text/javascript"></script>
<script src="js/jquery.jqzoom-core.js" type="text/javascript"></script>

<link rel="stylesheet" href="css/jquery.jqzoom.css" type="text/css">
<style type"text/css">

a img,:link img,:visited img { border: none; }
table { border-collapse: collapse; border-spacing: 0; }
:focus { outline: none; }
p, blockquote, dd, dt{margin:0 0 8px 0;line-height:1.5em;}
fieldset {padding:0px;padding-left:7px;padding-right:7px;padding-bottom:7px;}
fieldset legend{margin-left:15px;padding-left:3px;padding-right:3px;color:#333;}
dl dd{margin:0px;}
dl dt{}

.clearfix:after{clear:both;content:".";display:block;font-size:0;height:0;line-height:0;visibility:hidden;}
.clearfix{display:block;zoom:1}


ul#thumblist{display:block;}
ul#thumblist li{float:left;margin-right:2px;list-style:none;}
ul#thumblist li a{display:block;border:1px solid #CCC;}
ul#thumblist li a.zoomThumbActive{
    border:1px solid red;
}

.jqzoom{

	text-decoration:none;
	float:left;
}





</style>
<script type="text/javascript">

$(document).ready(function() {
	$('.jqzoom').jqzoom({
            zoomType: 'standard',
            lens:true,
            preloadImages: false,
            alwaysOn:false
        });
	
});


</script>
<?php
$id=$_REQUEST['id'];
				$result=mysql_query("select * from items where itemid=$id") or die("select * from items  where itemid=$id"."<br/><br/>".mysql_error());
				$no=mysql_num_rows($result);

		if($no>0)
		{
			$count=0;
			$x="cameras";
		while($rec=mysql_fetch_assoc($result))
		{
		$imagepath='admin/'.$rec["imagepath"]; 
		?><table width="70%">
			<tr>
			<td width="42%" valign="top">
<div class="clearfix" id="content" style="margin-top:100px;margin-left:3px; width:250px;" >
    <div class="clearfix">
	        <a href="<?php echo $imagepath; ?>" class="jqzoom" rel='gal1'  title="<?php echo $rec['itemname'];?>">

			<img src="<?php echo $imagepath; ?>" alt="<?php echo $rec['itemname'];?>"  class="jqzoom" rel='gal1'  title="<?php echo $rec['itemname'];?>" id="img<?php echo $rec['itemid']; ?>"></a>		</div></div>
			<br /></td></tr><tr><td  valign="top">
			  <ul style="margin:40px 40px 20px 50px; float:left; list-style:none; letter-spacing:inherit; line-height:35px; font-family:Calibri">
			  <li style="font-size:24px; text-transform:capitalize"><?php echo $rec['itemname']." ".$rec['model'];?></li>
				 <li><strong>Price:</strong><big style="color:green">  $ <?php echo $rec['cost'];?></big></li>
				 <li><strong>brand:</strong><big style="color:green">  <?php echo $rec['brand'];?></big></li>
				<li><strong>Details:</strong><a href="description.php?id=<?php echo $id; ?>">See More...</a></li>
				
			</ul>
</td></tr>          <?php
		}
		}
?>
</table>
